package com.longrise.android.widget.lviewpage;

import com.longrise.android.FormParameter;
import com.longrise.android.LFView;

import android.content.Context;
import android.view.View;

public abstract class FragmentView extends LFView{
	
	public FragmentView(Context context)
	{
		super(context);
	}
	
	public void init(){};
	public void refresh(){};
	public void OnDestroy(){};
	public View getView()
	{
		return null;
	};
	
	public void setLevel(int level)
	{
		super.setFormLevel(level);
	}
	
	@Override
	public FormParameter getFormParameter()
	{
		FormParameter formParameter = new FormParameter();
		formParameter.setShowtitle(false);
		formParameter.setWidth(-1);
		formParameter.setHeight(-1);
		return formParameter;
	}

	@Override
	public void refreshByTime() {
		
	}

	public abstract void onCreate();
	public abstract void onStart();
	public abstract View onCreateView(Context context);
	public abstract void onStop() ;
	public abstract void onDestroyView() ;
	public abstract void onDestroy();
}
